import { PointObj2, StartEndPoint } from '@/types';

export function getPointStr(point: PointObj2) {
  return `(${[point.x, point.y]})`;
}
export function getPointsStrFromStartEnd(curveParams: StartEndPoint[]) {
  return [curveParams[0].startPoint]
    .concat(curveParams.map((curveParam) => curveParam.endPoint))
    .map(getPointStr)
    .toString();
}
